package com.yuju.account.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuju.account.dao.IRefundRecordDao;
import com.yuju.account.dao.entity.RefundRecord;
import com.yuju.account.model.RefundRecordModel;
import com.yuju.account.service.IRefundRecordService;
import com.yuju.common.core.dao.IBaseDao;
import com.yuju.common.core.service.AbstractBaseService;
import com.yuju.util.Utils;

/**
 * 
 * 类名：RefundRecordServiceImpl  <br />
 *
 * 功能：退款
 *
 * @author : xuehj <br />
 * @Date : 2018年2月7日 上午9:20:37  <br />
 * @version : 1.1 <br />
 */
@Service
public class RefundRecordServiceImpl extends AbstractBaseService<RefundRecordModel, RefundRecord, String> implements IRefundRecordService {
	@Autowired
	private IRefundRecordDao refundRecordDao;
	
	@Override
	public IBaseDao<RefundRecordModel, RefundRecord, String> getDao() {
		// TODO Auto-generated method stub
		return refundRecordDao;
	}
	@Override
	public int  save(RefundRecordModel model){
		model.setId(Utils.getUUID());
		model.setGmtModified(new Date());
		model.setGmtCreate(new Date());
		return super.save(model);
	};

}
